package main

import (
	"enjoy_wys/internal/model"
	"enjoy_wys/router"
	"gitee.com/xuxinzhi2206/corehub/viper"
	"github.com/gin-gonic/gin"
)

func init() {
	err := viper.GetViper("./config..yaml")
	if err != nil {
		return
	}
	err = model.Migrate()
	if err != nil {
		return
	}

}
func main() {

	r := gin.Default()
	router.Router(r)
	r.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
